class HourController < PrivateController

  def punch_in
    current_user.punch_in request.remote_ip
    flash[:notice] = t(:you_are_in)
    redirect_to '/'
  end

  def punch_out
    current_user.punch_out request.remote_ip
    flash[:notice] = t(:you_are_out)
    redirect_to '/'
  end

  private

  def model_name
    'hour'
  end

end
